<template>
<div class="myOrder">
  <el-menu  class="el-menu-demo" mode="horizontal" >
    <el-menu-item index="1"><router-link to="/myOrder/myInitiate">求助订单</router-link></el-menu-item>
    <el-menu-item index="2"><router-link to="/myOrder/mySnapshotOrder">帮助订单</router-link></el-menu-item>
  </el-menu>
  <div class="content">
    <div class="detail_left">
      <RouterView></RouterView>
    </div>
    <div class="detail_right">
      <OrderBar style="width: 100%;float: right;clear: right"></OrderBar>
      <div class="detail_right_bottom">

      </div>
    </div>
  </div>
</div>
</template>

<script>
import {mapState} from "vuex";
import OrderBar from "@/views/home/OrderBar.vue";

export default {
  name: "MyOrderIndex",
  components:{
    OrderBar
  },
  computed:{
    ...mapState({
      getuserInfo:state => state.user.userInfo
    })
  },
}
</script>

<style scoped>
.myOrder{
  width: 1184px;
  margin: 0 auto;
}
.content{
  margin-top: 30px;
  height: 920px;
  width: 1184px;
}
.el-menu{
  height: 70px;
}
.el-menu-item{
  font-size: 17px;
  margin-left: 300px;
}
.detail_left{
  border-radius: 20px 20px 0 0;
  height: 920px;
  width: 70%;
  float: left;
  background-color: white;
}
/*右边*/
.detail_right{
  border-radius: 20px 20px 0 0;
  height: 920px;
  width: 28%;
  float: right;
  box-sizing: border-box;
}

.detail_right_bottom{
  clear: right;
  border-radius: 20px;
  height: 46.6%;
  background-color: #2c3e50;
  margin-top: 490px;
}

</style>
